//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by Fernflower decompiler)
//

package org.ares.app.demo.common.mvc;

import java.util.HashMap;
import java.util.Map;
import javax.servlet.http.HttpServletRequest;
import org.ares.app.demo.common.exception.a;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.http.HttpStatus;
import org.springframework.web.bind.annotation.ControllerAdvice;
import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.ResponseStatus;

@ControllerAdvice
public class DemoActionHadnler {
    static final Logger log = LoggerFactory.getLogger(DemoActionHadnler.class);

    public DemoActionHadnler() {
    }

    @ExceptionHandler({a.class})
    @ResponseStatus(HttpStatus.BAD_REQUEST)
    @ResponseBody
    public Map<String, Object> handleSignException(HttpServletRequest request, Exception e) {
        HashMap var3 = new HashMap();
        var3.put("RESULT", "F");
        var3.put("ERRMSG", e.getMessage());
        return var3;
    }

    @ExceptionHandler({Exception.class})
    @ResponseStatus(HttpStatus.BAD_REQUEST)
    @ResponseBody
    public Map<String, Object> handleException(HttpServletRequest request, Exception e) {
        log.debug(e.getMessage());
        HashMap var3 = new HashMap();
        var3.put("RESULT", "F");
        var3.put("ERRMSG", e.getMessage());
        return var3;
    }
}
